using Microsoft.Extensions.Logging;

namespace WpfClient.Infrastructure.Services
{
    /// <summary>
    /// 日志服务实现
    /// </summary>
    public class LoggingService
    {
        private readonly ILogger<LoggingService> _logger;

        public LoggingService(ILogger<LoggingService> logger)
        {
            _logger = logger;
        }

        public void LogInformation(string message)
        {
            _logger.LogInformation(message);
        }

        public void LogWarning(string message)
        {
            _logger.LogWarning(message);
        }

        public void LogError(string message, Exception? exception = null)
        {
            _logger.LogError(exception, message);
        }

        public void LogDebug(string message)
        {
            _logger.LogDebug(message);
        }
    }
}